import {Dropdown} from "antd";
import React from "react";

function CcDropdown(){

    const options = [
        {
            label:"111",
            key:"key111"
        },
        {
            label:"222",
            key:"key222"
        }
    ]

    return (
        <div>
            <Dropdown menu={{items:options}}>
                dropdown
            </Dropdown>


            <Dropdown.Button menu={{items:options}} buttonsRender={([leftButton,rightButton])=>{
                return [
                    leftButton,
                    React.cloneElement(rightButton ,{loading:true})
                ]
            }}>
                hehe
            </Dropdown.Button>



        </div>
    )
}

export default CcDropdown
